package com.yisu.kabao.manager.core.mapper;

import com.yisu.kabao.ewf.entity.Advertisement;
import com.yisu.kabao.manager.domain.request.baseInfoPackage.AdvertisementRequest;

import java.util.List;

public interface AdvertisementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Advertisement record);

    int insertSelective(Advertisement record);

    Advertisement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Advertisement record);

    int updateByPrimaryKey(Advertisement record);

    /**
     * author:赵杰
     * Business Description : 分页获取广告位列表
     * @param advertisementRequest 分页请求信息
     * @return 广告位列表信息
     */
    List<Advertisement> getAdvertisementByPage(AdvertisementRequest advertisementRequest);
}